<?php

namespace Acme\TaskBundle\Entity;

use Symfony\Component\Validator\Constraints as Assert;
use Doctrine\ORM\Mapping as ORM;

use Acme\TaskBundle\Entity;


/**
 * Acme\TaskBundle\Entity\Task
 *
 * @ORM\Table(name="task")
 * @ORM\Entity(repositoryClass="Acme\TaskBundle\Repository\TaskRepository") 
 */
class Task
{
    /**
     * @var integer $id
     */
    private $id;

    /**
     * @var string $task
     */
    private $task;

    /**
     * @var datetime $dueDate
     */
    private $dueDate;

    /**
     * @var text $description
     */
    private $description;


    /**         
     * @Assert\Type(type="Acme\TaskBundle\Entity\Category")
     */     
    protected $category;
    
    public function getCategory()
    {
    	return $this->category;
    }
    
    
    public function setCategory(Category $category = null)
    {
    	$this->category = $category;
    }
    
    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set task
     *
     * @param string $task
     */
    public function setTask($task)
    {
        $this->task = $task;
    }

    /**
     * Get task
     *
     * @return string 
     */
    public function getTask()
    {
        return $this->task;
    }

    /**
     * Set dueDate
     *
     * @param datetime $dueDate
     */
    public function setDueDate($dueDate)
    {
        $this->dueDate = $dueDate;
    }

    /**
     * Get dueDate
     *
     * @return datetime 
     */
    public function getDueDate()
    {
        return $this->dueDate;
    }

    /**
     * Set description
     *
     * @param text $description
     */
    public function setDescription($description)
    {
        $this->description = $description;
    }

    /**
     * Get description
     *
     * @return text 
     */
    public function getDescription()
    {
        return $this->description;
    }
}